<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/jsps/common/tags.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<head>
<base href="<%=basePath%>">
<title>音乐在线</title>
<link href="<%=request.getContextPath()%>/css/homepage.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
  function music(name)
        {
    		var filepath="http://localhost:8080/HustMusic"+name;
       var url="<s:url action="music.action" namespace="/"/>?song.filepath="+filepath;  
      window.open (url,"newwindow","height=100,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no") ;
		 
        }
</script>

	</head>
	<body >
	
<div id="newranking1">
	<div id="newrankingtittle">
	    <li><a style="text-decoration:none;"><strong>&nbsp&nbsp新歌榜</strong></a>
	  </div>
		  
		<div class="more">
     <li><a title="歌手" href="" style="color:#2c76c0">更多>></a></li>
		</div>
       
		 	<div style="font-size:15px;font-family:宋体;margin-top:20px;" class="left">
     <table width="95%" align="center">
      <s:iterator value="page.content">
     <tr height="50px" align="center">
     <td width="280" align="left"><a title="歌手"style="font-size:20px;color:#595959"><b>*</b></a>&nbsp&nbsp&nbsp<span style="color:#2c76c0;"><a title="<s:property value="name" />"href="" target="_blank"><s:property value="name" /></a>-<a title="<s:property value="singer" />"href=""><s:property value="singer" /></a></span></td>
     <td width="50" align="left"><a title="播放" onclick="music('<s:property value="filepath"/>');"><img src="<%=request.getContextPath()%>/images/play1.gif" width="20" height="20" onmouseover="this.src='<%=request.getContextPath()%>/images/play2.gif'" onmouseout="this.src='<%=request.getContextPath()%>/images/play1.gif'"/></a><a title="收藏" href=""><img src="<%=request.getContextPath()%>/images/store1.gif" width="20" height="20" onmouseover="this.src='<%=request.getContextPath()%>/images/store4.gif'" onmouseout="this.src='<%=request.getContextPath()%>/images/store1.gif'"/></a></td>
     </tr>
     </s:iterator></table>
    
		</div>
  </div>

</body>
</html>
